#include "MainPage.h"
#include "Game_page.h"
#include "IniProgram.h"

Container *Reminder_Page = nullptr;
Container *Reminder_Page_Cancle_Btn = nullptr;
Container *Reminder_Page_Confirm_Btn = nullptr;

extern void Game_Start();

void Display_Reminder_Page()
{
    manager.set_top(Reminder_Page);
}

void create_Reminder_Page()
{
    Reminder_Page = new Container(300, 200);
    Reminder_Page->set_Visible();
    Reminder_Page->set_background_image("./res/Reminder.bmp", true, 0x00ff0000);
    Reminder_Page->set_pos(250, 100);
    Reminder_Page->set_Event_Type(CLICK);
    manager.add(Reminder_Page);

    Reminder_Page_Cancle_Btn = new Container(Reminder_Page, 100, 50);
    Reminder_Page_Cancle_Btn->set_Visible();
    Reminder_Page_Cancle_Btn->align(LEFT_CENTER, 20, 25);
    Reminder_Page_Cancle_Btn->set_background_image("./res/Confirm.bmp", true, 0x00ff0000);
    Reminder_Page_Cancle_Btn->set_Event_Type(CLICK);
    Reminder_Page_Cancle_Btn->set_Event(Game_Start);

    Reminder_Page_Confirm_Btn = new Container(Reminder_Page, 100, 50);
    Reminder_Page_Confirm_Btn->set_Visible();
    Reminder_Page_Confirm_Btn->align(RIGHT_CENTER, -20, 25);
    Reminder_Page_Confirm_Btn->set_background_image("./res/cancle_btn.bmp", true, 0x00ff0000);
    Reminder_Page_Confirm_Btn->set_Event_Type(CLICK);
    Reminder_Page_Confirm_Btn->set_Event(Display_Main_Page);
}